package no.sachmuld.methodcombination.examples.reflection.scalatraitstyle;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class Tea extends Beverage {

    public Tea() {
        with(new BeverageTrait() {
            @Override
            public double cost(MethodInvocation<Double> methodInvocation) {
                return 1.59;
            }

            @Override
            public String toString(MethodInvocation<String> methodInvocation) {
                return "Tea";
            }
        });
    }
}

